<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\PersonSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'People';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="person-index">

    <?php Pjax::begin(); ?>
    <div class="panel">
		<div class="panel-heading panel-heading-auto">
            <?php echo $this->render('_search', ['model' => $searchModel]); ?>
		</div>
        <div class="panel-body">

    <p style="margin-bottom: 15px;">
        <?= Html::a('新增', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?= GridView::widget([
        'layout' => "{items}\n{pager}",
        'tableOptions' => ['class' => 'table table-hover table-bordered'],
        'dataProvider' => $dataProvider,
        //'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn', 'header' => '序号'],

            'id',
            'name',
            'sex',
            'birthday',
            'nationality',
            //'id_type',
            //'id_number',
            //'ethnicity',
            //'birthplace',
            //'native_place',
            //'address',
            //'mobile',
            //'email:email',
            //'qq',
            //'weixin',
            //'marriage',
            //'qualification',
            //'school',
            //'major',
            //'graduation_date',
            //'degree',
            //'create_time',
            //'update_time',

            ['class' => 'yii\grid\ActionColumn', 'header'=>'操作'],
        ],
    ]); ?>

		</div>
	</div>
    <?php Pjax::end(); ?>

</div>
